package com.team.mp.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户角色表(SysUserRole)表实体类
 *
 * @author makejava
 * @since 2023-03-27 16:33:26
 */
@Data
@TableName("sys_user_role")
public class SysUserRole extends Model<SysUserRole> {
    //id，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户id
    private Integer userId;
    //角色id
    private Integer roleId;
    public SysUserRole(Integer userId, Integer roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }
}

